package com.useeinfo.oa.modules.threadUtil.thread;

import com.useeinfo.oa.modules.base.biz.PersonnelBiz;
import com.useeinfo.oa.modules.base.entity.Enterprise;
import org.apache.poi.ss.usermodel.Workbook;

public class ImportUserThread extends Thread {

    private PersonnelBiz personnelBiz;
    private Workbook wb;
    private Enterprise enterprise;

    public ImportUserThread(PersonnelBiz personnelBiz, Workbook wb, Enterprise enterprise) {
        this.personnelBiz = personnelBiz;
        this.wb = wb;
        this.enterprise = enterprise;
    }

    @Override
    public synchronized void run() {
        personnelBiz.importUser(wb, enterprise);
    }
}
